import Vue from "vue";
import Losses from "@/views/components/production/Losses.vue"; // 引入弹窗组件

const losses = Vue.extend(Losses);

losses.showDialog = function(data,callBack) {
  let instance = new losses().$mount();

  document.body.appendChild(instance.$el);

  Vue.nextTick(() => {
    instance.showDialog(data,callBack);
  });
};

export default losses; 